package com.yx.filesystem.storage;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;

public class State {
	Hashtable<String, BigInteger> fileState=new Hashtable<String, BigInteger>();
	private String serverId=null;
	private long totalSpace=0;	
	private long freeSpace=0;
	private long usedSpace=0;
	private boolean spaceFull=true;
	private List<String> backupNodes=new ArrayList<String>();
	
	public State() {		
	}
	public String getServerId() {
		return serverId;
	}
	public void setServerId(String serverId) {
		this.serverId = serverId;
	}
	public Hashtable<String, BigInteger> getFileState() {
		return fileState;
	}
	public void setFileState(Hashtable<String, BigInteger> fileState) {
		this.fileState = fileState;
	}
	public long getTotalSpace() {
		return totalSpace;
	}
	public void setTotalSpace(long totalSpace) {
		this.totalSpace = totalSpace;
	}
	public long getFreeSpace() {
		return freeSpace;
	}
	public void setFreeSpace(long freeSpace) {
		this.freeSpace = freeSpace;
	}
	public long getUsedSpace() {
		return usedSpace;
	}
	public void setUsedSpace(long usedSpace) {
		this.usedSpace = usedSpace;
	}
	public boolean isSpaceFull() {
		return spaceFull;
	}
	public void setSpaceFull(boolean spaceFull) {
		this.spaceFull = spaceFull;
	}
	public List<String> getBackupNodes() {
		return backupNodes;
	}
	public void addBackupNodes(String backupNode) {
		this.backupNodes.add(backupNode);
	}

}
